<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Administrator</title>       
        <f:metadata>
            <f:event listener="#{acmb.verifylogin()}" type="preRenderView"></f:event>
        </f:metadata>
        <h:outputStylesheet library="admin/css" name="style.css" />


        <h:outputScript library="admin/js" name="jquery.js"></h:outputScript>
        <h:outputScript library="admin/js" name="jquery_ui.js"></h:outputScript>
        <h:outputScript library="admin/js" name="wysiwyg.js"></h:outputScript>
        <h:outputScript library="admin/js" name="jquery-1.6.2.js"></h:outputScript>
        <h:outputScript library="admin/js" name="functions.js"></h:outputScript>

        <h:outputScript library="admin/js" name="jquery-1.9.1.js"></h:outputScript>
        <h:outputScript library="admin/js" name="jquery-ui-1.10.3.custom.min.js"></h:outputScript>
        <script>
            $(function() {
                $( "#dob" ).dateStr;
                $( "#deadline" ).dateStr;
                $( "#startedTime" ).dateStr;
                $( "#endedTime" ).dateStr;
            });
        </script>


    </h:head>
    <h:body>
        <div id="container"> <!-- Container -->
            <div id="header"> <!-- Header -->
                <div id="title">
                    Administrator Manager
                    <span>Professional CMS Administrator Skin</span>

                </div>
                <div class="logged">

                    <h:form>
                        <p>Welcome: <h:commandLink  value="#{acmb.username}" /></p>    
                        <p><h:commandLink action="#{acmb.logout()}" value="Log Out" onclick="return confirm('you sure log out?')"/>
                        </p> 
                    </h:form>

                </div>
            </div>	
            <div id="sidebar"> <!-- Sidebar -->
                <div class="sidebox">
                    <span class="stitle">Navigation</span>
                    <div id="navigation"> <!-- Navigation begins here -->
                        <div class="sidenav" ><!-- Sidenav -->
                            <c:if test="#{acmb.ac.role ==1}" var="ac">               
                                <div class="navhead" ><span>Account</span></div>
                                <div class="subnav">
                                    <ul class="submenu">
                                        <li><h:link outcome="Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="List.xhtml">List</h:link></li>       
                                    </ul>
                                </div>
                                <div class="navhead"><span>Applicant</span></div>
                                <div class="subnav">
                                    <ul class="submenu">
                                        <li><h:link outcome="../applicant/Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="../applicant/List.xhtml">List</h:link></li>
                                    </ul>
                                </div>
                                <div class="navhead"><span>Vacancy</span></div>
                                <div class="subnav">
                                    <ul class="submenu" >
                                        <li><h:link outcome="../vacancy/Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="../vacancy/List.xhtml">List</h:link></li>
                                    </ul>
                                </div>
                                <div class="navhead"><span>Inter view</span></div>
                                <div class="subnav">
                                    <ul class="submenu">
                                        <li><h:link outcome="../interview/Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="../interview/List.xhtml">List</h:link></li>
                                    </ul>
                                </div>
                                <div class="navhead"><span>Employee</span></div>
                                <div class="subnav">
                                    <ul class="submenu" >
                                        <li><h:link outcome="../employee/Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="../employee/List.xhtml">List</h:link></li>
                                    </ul>
                                </div>
                                <div class="navhead"><span>Department</span></div>
                                <div class="subnav">
                                    <ul class="submenu" >
                                        <li><h:link outcome="../department/Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="../department/List.xhtml">List</h:link></li>
                                    </ul>
                                </div>
                                <div class="navhead"><span>CV</span></div>
                                <div class="subnav">
                                    <ul class="submenu">
                                        <li><h:link outcome="../cv/Create.xhtml">Create</h:link></li>
                                        <li><h:link outcome="../cv/List.xhtml">List</h:link></li>
                                    </ul>
                                </div>
                            </c:if>
                            <c:if test="#{acmb.ac1.role==2}" var="ac">               

                                <div class="navhead"><span>HR Group</span></div>
                                <div class="subnav">
                                    <ul class="submenu">
                                        <li><h:link outcome="../hrGroup/CreateApp.xhtml">Create Applicant</h:link></li>
                                        <li><h:link outcome="../hrGroup/ListApplicant.xhtml">List Applicant</h:link></li>
                                        <li><h:link outcome="../hrGroup/CreateVaca.xhtml">Create Vacancy</h:link></li>
                                        <li><h:link outcome="../hrGroup/ListVaca.xhtml">List Vacancy</h:link></li>
                                        <li><h:link outcome="../hrGroup/CreateInter.xhtml">Create Inter View </h:link></li>
                                        <li><h:link outcome="../hrGroup/ListInterview.xhtml">List Inter View</h:link></li>
                                        <li><h:link outcome="../hrGroup/CreateCv.xhtml">Create CV </h:link></li>
                                        <li><h:link outcome="../hrGroup/ListCv.xhtml">List CV</h:link></li>


                                        <li><h:link outcome="../hrGroup/Search.xhtml">Search</h:link></li>
                                    </ul>
                                </div>                               
                            </c:if>
                            <c:if test="#{acmb.ac1.role ==3}" var="ac">               

                                <div class="navhead"><span>Inter View</span></div>
                                <div class="subnav">
                                    <ul class="submenu">
                                        <li><h:link outcome="../interviewer/ListInterview.xhtml">List</h:link></li>
                                    </ul>
                                </div>   
                            </c:if>
                        </div>
                    </div> <!-- END Navigation -->
                </div>
                <div class="sidebox">
                    <span class="stitle">Photo gallery</span>
                    <div class="gallery">

                        <p:lightBox styleClass="imagebox">  
                            <h:outputLink value="../images/4.jpg" title="Sopranos 1">  
                                <h:graphicImage library="admin/images" name="4.jpg" height="75"/>  
                            </h:outputLink>  

                            <h:outputLink value="../images/3.jpg" title="Sopranos 2">  
                                <h:graphicImage library="admin/images" name="3.jpg" height="75" />  
                            </h:outputLink>  

                            <h:outputLink value="../images/2.jpg" title="Sopranos 3">  
                                <h:graphicImage library="admin/images" name="2.jpg" height="75"/>  
                            </h:outputLink>  

                            <h:outputLink value="../images/1.jpg" title="Sopranos 4">  
                                <h:graphicImage library="admin/images" name="1.jpg" height="75"/>  
                            </h:outputLink>  
                        </p:lightBox>  


                    </div>
                </div>    
            </div> <!-- END Sidebar -->
            <div id="main"> <!-- Main, right side content -->
                <div id="content"> <!-- Content begins here -->
                    <ul class="modals">
                        <li>
                            <a href="#">
                                <h:graphicImage library="admin/images/iconsee" name="pencil_48.png" alt="Write an article"/>
                                <span>Write an article</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <h:graphicImage library="admin/images/iconsee" name="diagram_48.png" alt="View statistics"/>
                                <span>View statistics</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <h:graphicImage library="admin/images/iconsee" name="letter_48.png" alt="Check inbox"/>
                                <span>Check inbox</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <h:graphicImage library="admin/images/iconsee" name="clipboard_48.png" alt="To-do list"/>
                                <span>Todo list</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <h:graphicImage library="admin/images/iconsee" name="gear_48.png" alt="Settings"/>
                                <span>Settings</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <h:graphicImage library="admin/images/iconsee" name="save_48.png" alt="Save this!"/>
                                <span>Save this!</span>
                            </a>
                        </li>
                    </ul>
                    <h2>Tables</h2>
                    <ui:insert name="content">


                    </ui:insert>
                    <div class="clear"><!-- --></div>

                </div> <!-- END Content -->

            </div> 	
            <div id="footer"> 
                <p>Copyright <a rel="dofollow" target="_blank" href="http://nicetheme.net/">Nice Theme</a> 2009. All rights reserved.</p>
            </div>	
        </div>
    </h:body>
</html>

